﻿using System.Windows;
using System.Windows.Controls;
using HSS.Interlink.UI;

namespace HSS.Interlink.Client.SL5.TestApp
{
	public partial class CustomFileDetail : ChildWindow
	{
		public CustomFileDetail()
		{
			InitializeComponent();
		}

		/// <summary>
		/// Gets or sets the UploadFile to display the details for.
		/// </summary>
		public UploadFile File
		{
			get { return this.details.DataContext as UploadFile; }
			set { this.details.DataContext = value; }
		}

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = false;
		}
	}
}

